<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <f:view contentType="text/html">
        <h:head>
            <f:facet name="first">
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>PrimeFaces</title>
            </f:facet>
        </h:head>

        <h:body>

            <p:layout fullPage="true">

                <p:layoutUnit position="north" size="100" resizable="true" closable="true" collapsible="true">
                    Header
                </p:layoutUnit>

                <p:layoutUnit position="south" size="100" closable="true" collapsible="true">
                    Footer
                </p:layoutUnit>

                <p:layoutUnit position="west" size="175" header="Left" collapsible="true">
                    <p:menu>
                        <p:submenu label="Resources">
                            <p:menuitem value="Demo" url="http://www.primefaces.org/showcase-labs/ui/home.jsf" />
                            <p:menuitem value="Documentation" url="http://www.primefaces.org/documentation.html" />
                            <p:menuitem value="Forum" url="http://forum.primefaces.org/" />
                            <p:menuitem value="Themes" url="http://www.primefaces.org/themes.html" />

                        </p:submenu>

                    </p:menu>
                </p:layoutUnit>

                <p:layoutUnit position="center">
                    Welcome to PrimeFaces
                    <br />

      
                    <h:form>
                          <p:panel header="Ingreso Cliente" style="width:320px">
                            <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateBajVentClienteLabel_nit}" for="nit" />
                    <h:inputText id="nit" value="#{bajVentClienteController.selected.nit}" title="#{bundle.CreateBajVentClienteTitle_nit}" required="true" requiredMessage="#{bundle.CreateBajVentClienteRequiredMessage_nit}"/>
                    <h:outputLabel value="#{bundle.CreateBajVentClienteLabel_nombre}" for="nombre" />
                    <h:inputText id="nombre" value="#{bajVentClienteController.selected.nombre}" title="#{bundle.CreateBajVentClienteTitle_nombre}" required="true" requiredMessage="#{bundle.CreateBajVentClienteRequiredMessage_nombre}"/>
                    <h:outputLabel value="#{bundle.CreateBajVentClienteLabel_apellido}" for="apellido" />
                    <h:inputText id="apellido" value="#{bajVentClienteController.selected.apellido}" title="#{bundle.CreateBajVentClienteTitle_apellido}" required="true" requiredMessage="#{bundle.CreateBajVentClienteRequiredMessage_apellido}"/>
                    <h:outputLabel value="#{bundle.CreateBajVentClienteLabel_direccion}" for="direccion" />
                    <h:inputText id="direccion" value="#{bajVentClienteController.selected.direccion}" title="#{bundle.CreateBajVentClienteTitle_direccion}" />
                    <h:outputLabel value="#{bundle.CreateBajVentClienteLabel_telefono}" for="telefono" />
                    <h:inputText id="telefono" value="#{bajVentClienteController.selected.telefono}" title="#{bundle.CreateBajVentClienteTitle_telefono}" />
                    <h:outputLabel value="#{bundle.CreateBajVentClienteLabel_estado}" for="estado" />
                    <h:inputText id="estado" value="#{bajVentClienteController.selected.estado}" title="#{bundle.CreateBajVentClienteTitle_estado}" required="true" requiredMessage="#{bundle.CreateBajVentClienteRequiredMessage_estado}"/>

                
                        <p:splitButton value="Save" actionListener="#{bajVentClienteController.create}" ajax="false" icon="ui-icon-disk">
                            <p:menuitem value="Update" actionListener="#{buttonView.update}"  icon="ui-icon-arrowrefresh-1-w" />
                            <p:menuitem value="Delete" actionListener="#{buttonView.delete}" ajax="false" icon="ui-icon-close" />
                            <p:separator />
                            <p:menuitem value="Cancelar" url="#" icon="ui-icon-extlink" />
                        </p:splitButton>
                            </h:panelGrid>
                          </p:panel>
                   </h:form>  
              
            <h:form styleClass="jsfcrud_list_form">
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <h:outputText escape="false" value="#{bundle.ListBajVentClienteEmpty}" rendered="#{bajVentClienteController.items.rowCount == 0}"/>
                <h:panelGroup rendered="#{bajVentClienteController.items.rowCount > 0}">
                    <h:outputText value="#{bajVentClienteController.pagination.pageFirstItem + 1}..#{bajVentClienteController.pagination.pageLastItem + 1}/#{bajVentClienteController.pagination.itemsCount}"/>&nbsp;
                    <h:commandLink action="#{bajVentClienteController.previous}" value="#{bundle.Previous} #{bajVentClienteController.pagination.pageSize}" rendered="#{bajVentClienteController.pagination.hasPreviousPage}"/>&nbsp;
                    <h:commandLink action="#{bajVentClienteController.next}" value="#{bundle.Next} #{bajVentClienteController.pagination.pageSize}" rendered="#{bajVentClienteController.pagination.hasNextPage}"/>&nbsp;
                    <h:dataTable value="#{bajVentClienteController.items}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px">
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBajVentClienteTitle_nit}"/>
                            </f:facet>
                            <h:outputText value="#{item.nit}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBajVentClienteTitle_nombre}"/>
                            </f:facet>
                            <h:outputText value="#{item.nombre}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBajVentClienteTitle_apellido}"/>
                            </f:facet>
                            <h:outputText value="#{item.apellido}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBajVentClienteTitle_direccion}"/>
                            </f:facet>
                            <h:outputText value="#{item.direccion}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBajVentClienteTitle_telefono}"/>
                            </f:facet>
                            <h:outputText value="#{item.telefono}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListBajVentClienteTitle_estado}"/>
                            </f:facet>
                            <h:outputText value="#{item.estado}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="&nbsp;"/>
                            </f:facet>
                            <h:commandLink action="#{bajVentClienteController.prepareView}" value="#{bundle.ListBajVentClienteViewLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{bajVentClienteController.prepareEdit}" value="#{bundle.ListBajVentClienteEditLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{bajVentClienteController.destroy}" value="#{bundle.ListBajVentClienteDestroyLink}"/>
                        </h:column>
                    </h:dataTable>
                </h:panelGroup>
                <br />
                <h:commandLink action="#{bajVentClienteController.prepareCreate}" value="#{bundle.ListBajVentClienteCreateLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ListBajVentClienteIndexLink}" action="/index" immediate="true" />
            </h:form>
   
                </p:layoutUnit>

            </p:layout>

        </h:body>

    </f:view>
</html>

